package com.m.man;

import java.util.HashMap;
import java.util.Map;

public class T {
    public static void main(String[] args) {
        System.out.println("ffffffffffffffff");
        Map<String,String> str_str_map = new HashMap<String, String>();
        str_str_map.put("1","A");
        str_str_map.put("1","A");
        str_str_map.put("1","A");
        str_str_map.put("1","A");
        str_str_map.put("2","A");
        System.out.println(str_str_map);
        //  测试  类  做 key
        Person p_1_key = new Person();
        Person p_2_key = new Person();
        Person p_3_key = new Person();
        Person p_4_key = new Person();
        Person p_5_key = new Person();
        Person p_6_key = new Person();
        Person p_7_key = new Person();
        Person p_8_key = new Person();
        Person p_9_key = new Person();
        Person p_10_key = new Person();
        Person p_11_key = new Person();
        Person p_12_key = new Person();
        Person p_13_key = new Person();
        Person p_14_key = new Person();
        Person p_15_key = new Person();
        Person p_16_key = new Person();
        Person p_17_key = new Person();

        p_1_key.setAge(10);
        p_1_key.setName("qq");

        p_2_key.setAge(20);
        p_2_key.setName("mm");

        p_3_key.setAge(20);
        p_3_key.setName("mm");


        p_4_key.setAge(20);
        p_4_key.setName("mm");

        p_5_key.setAge(20);
        p_5_key.setName("mm");

        p_6_key.setAge(20);
        p_6_key.setName("mm");

        p_7_key.setAge(20);
        p_7_key.setName("mm");

        p_8_key.setAge(20);
        p_8_key.setName("mm");

        p_9_key.setAge(20);
        p_9_key.setName("mm");

        p_10_key.setAge(20);
        p_10_key.setName("mm");

        p_11_key.setAge(20);
        p_11_key.setName("mm");

        p_12_key.setAge(20);
        p_12_key.setName("mm");

        p_13_key.setAge(20);
        p_13_key.setName("mm");

        p_14_key.setAge(20);
        p_14_key.setName("mm");

        p_15_key.setAge(20);
        p_15_key.setName("mm");

        p_16_key.setAge(20);
        p_16_key.setName("mm");

        p_17_key.setAge(20);
        p_17_key.setName("mm");

        Person p_18_key = null;
        p_18_key = p_17_key;
        Map<Person,String> p_map = new HashMap<Person,String>();
        p_map.put(p_1_key,"弟弟");
        p_map.put(p_2_key,"妹妹");

        p_map.put(p_3_key,"妹妹");
        p_map.put(p_4_key,"妹妹");
        p_map.put(p_5_key,"妹妹");
        p_map.put(p_6_key,"妹妹");
        p_map.put(p_7_key,"妹妹");
        p_map.put(p_8_key,"妹妹");
        p_map.put(p_9_key,"妹妹");
        p_map.put(p_10_key,"妹妹");
        p_map.put(p_11_key,"妹妹");
        p_map.put(p_12_key,"妹妹");
        p_map.put(p_13_key,"妹妹");
        p_map.put(p_14_key,"妹妹");
        p_map.put(p_15_key,"妹妹");
        p_map.put(p_16_key,"妹妹");
        p_map.put(p_17_key,"妹妹");
//        System.out.println(p_map);

        p_map.put(p_18_key,"妹妹");
        System.out.println(p_map);
        System.out.println(p_map);




    }
}

class Person {
    private int age;
    private String name;
    public Person() {

    }

    public Person(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}